package com.ruoyi.service.service.impl;

import com.ruoyi.service.domain.HealthService;
import com.ruoyi.service.mapper.HealthServiceMapper;
import com.ruoyi.service.service.IHealthServiceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 健康服务Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-01-06
 */
@Service
public class HealthServiceServiceImpl implements IHealthServiceService 
{
    @Autowired
    private HealthServiceMapper healthServiceMapper;

    /**
     * 查询健康服务
     * 
     * @param serviceId 健康服务主键
     * @return 健康服务
     */
    @Override
    public HealthService selectHealthServiceByServiceId(Long serviceId)
    {
        return healthServiceMapper.selectHealthServiceByServiceId(serviceId);
    }

    /**
     * 查询健康服务列表
     * 
     * @param healthService 健康服务
     * @return 健康服务
     */
    @Override
    public List<HealthService> selectHealthServiceList(HealthService healthService)
    {
        return healthServiceMapper.selectHealthServiceList(healthService);
    }

    /**
     * 新增健康服务
     * 
     * @param healthService 健康服务
     * @return 结果
     */
    @Override
    public int insertHealthService(HealthService healthService)
    {
        return healthServiceMapper.insertHealthService(healthService);
    }

    /**
     * 修改健康服务
     * 
     * @param healthService 健康服务
     * @return 结果
     */
    @Override
    public int updateHealthService(HealthService healthService)
    {
        return healthServiceMapper.updateHealthService(healthService);
    }

    /**
     * 批量删除健康服务
     * 
     * @param serviceIds 需要删除的健康服务主键
     * @return 结果
     */
    @Override
    public int deleteHealthServiceByServiceIds(Long[] serviceIds)
    {
        return healthServiceMapper.deleteHealthServiceByServiceIds(serviceIds);
    }

    /**
     * 删除健康服务信息
     * 
     * @param serviceId 健康服务主键
     * @return 结果
     */
    @Override
    public int deleteHealthServiceByServiceId(Long serviceId)
    {
        return healthServiceMapper.deleteHealthServiceByServiceId(serviceId);
    }
}
